package bgai.gamelogic;

public class BackgammonError extends RuntimeException {


	private static final long serialVersionUID = 4924318391573419644L;

	@SuppressWarnings("unused")
	private Backgammon bg;

	public BackgammonError(Backgammon bg, String message, Throwable cause,
			boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
		this.bg= (Backgammon) bg.clone();
	}

	public BackgammonError(Backgammon bg, String message, Throwable cause) {
		super(message, cause);
		this.bg= (Backgammon) bg.clone();
	}

	public BackgammonError(Backgammon bg, String message) {
		super(message);
		this.bg= (Backgammon) bg.clone();
	}

	public BackgammonError(Backgammon bg, Throwable cause) {
		super(cause);
		this.bg= (Backgammon) bg.clone();
	}

}
